package com.taru.houseapp.dao;

import com.taru.houseapp.entity.HouseComment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface IHCommentDao {

    /**
     * 添加评论
     * @param comment
     * @return
     */
    int insertHouseComment(HouseComment comment);

    /**
     * 删除评论
     * @param ids
     * @return
     */
    int deleteHouseComment(@Param("ids") List<Integer> ids);

    /**
     * 查看房子评论
     * @param houseId
     * @return
     */
    List<HouseComment> queryHouseComment(String houseId);
}
